package org.example;

public class 第十章_String {
    public static void main(String[] args) {
        //创建字符串
        String s1 = "Runoob1";
        String s2 = new String("Runoob2");
        char[] helloArray = { 'r', 'u', 'n', 'o', 'o', 'b'};
        String s3 = new String(helloArray);

        //获取字符串长度
        System.out.println("s3的长度是: "+s3.length());
        //连接字符串
        System.out.println("s1+s2: "+s1.concat(s2));
    }
}
